import request from '@/utils/request'

// 查询数据对象列表
export function listDataobject(query) {
    return request({
        url: '/lowcode/dataobject/list',
        method: 'get',
        params: query
    })
}

// 查询数据对象详细
export function getDataobject(id) {
    return request({
        url: '/lowcode/dataobject/' + id,
        method: 'get'
    })
}

// 新增数据对象
export function addDataobject(data) {
    return request({
        url: '/lowcode/dataobject',
        method: 'post',
        data: data
    })
}

// 修改数据对象
export function updateDataobject(data) {
    return request({
        url: '/lowcode/dataobject',
        method: 'put',
        data: data
    })
}

// 删除数据对象
export function delDataobject(id) {
    return request({
        url: '/lowcode/dataobject/' + id,
        method: 'delete'
    })
}
